# add to bottom of your .bashrc
if [ "$TERM" != "screen" ]; then
    #screen -D -R
    #Update 2008 Dec 16: -xRR is way better
    screen -xRR
fi